<template>
	<image :src="actionIcon" v-if="showAction"></image>
	<image src="../../assets/svg/mode/stop.svg" v-else></image>
</template>

<script>
	import {getSvg} from '../../utils/createSvg'
	export default {
		props:['color','showAction'],
		data() {
			return {
				actionIcon:'',
				stopIcon:''
			};
		},
		created(){
			this.actionIcon = getSvg(this.color)
		}
	}
</script>

<style lang="scss">

</style>
